
package com.bryanprogramming.zend.logic.powerups;

import com.bryanprogramming.zend.logic.ZEnd;

/**
 *
 * @author charlesbryan
 */
public class UndoPowerUp extends PowerUp {

    private int undoAmount;
    
    public UndoPowerUp(int amount, int cost, ZEnd game) {
        super(cost, "Undo +" + amount, game);
        this.undoAmount = amount;
        this.description = "Adds " + amount + " more undos to your current game.";
        
    }
    
    @Override
    public void usePowerUp() {
        this.game.addUndo(getUndoAmount());
    }

    /**
     * @return the undoAmount
     */
    public int getUndoAmount() {
        return undoAmount;
    }
    
}
